package com.example.admin_oa.model.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.comment_oa.pojos.SysPermission;

import java.util.List;
import java.util.Map;

/**
* @author cjl
* @description 针对表【sys_permission】的数据库操作Service
* @createDate 2022-10-15 00:45:00
*/
public interface SysPermissionService extends IService<SysPermission> {
    //获取主菜单
    List<SysPermission> meuList(int userId);
    //
    List<SysPermission> menuListAll();
    void menuSubAll(SysPermission sysPermission);
    List<SysPermission> menuYes();
    //根据主菜单id查询子菜单
    void menuSub(SysPermission sysPermission,int userId);

    //role菜单
    List<SysPermission> menuList(int rolesId);

    //role子菜单
    void subRole(int roleId,SysPermission sysPermission);

    Map map(int rolesId);

    //add
    int add(SysPermission sysPermission);
}
